import threading
import time

def worker():
    print("start")
    time.sleep(5)
    print("end")
    
t1 = threading.Thread(target=worker)
t1.daemon = True
t1.start()

count = 10
while count > 0:
    print(f"main thread doing, {count}")
    time.sleep(1)
    count -= 1